<?php
    session_start();

	include("../connect.php");
	$pilih=mysql_select_db("uwika_krs",$conn);
	$sqlstr="SELECT max(recno) FROM penawaran";
	$hasil=mysql_query($sqlstr);
	$row = mysql_fetch_row($hasil);
	list($recno) = $row;
	$recnox=$recno + 1;
	$kodemk=$_POST["sel_kodemk"];
	$txtsemester=$_POST["txtsemester"];
	$txtperiode=$_POST["txtperiode"];
	$txtsesi=$_POST["txtsesi"];
	$txtdosen=$_POST["txtdosen"];
	$txtketerangan=$_POST["txtketerangan"];
	$sel_hari=$_POST["sel_hari"];
	$txtmulaipukul=$_POST["txtmulaipukul"];
	$txtselesaipukul=$_POST["txtselesaipukul"];
	$txtkodejur=$_POST["txtkodejur"];
	$txtpagu=$_POST["txtpagu"];
	$sqlstr="insert into penawaran (recno,kodemk,semester,periode,sesi,dosen,keterangan,hari,mulaipukul,selesaipukul,jurusan,pagu) values ('$recnox','$kodemk','$txtsemester','$txtperiode','$txtsesi','$txtdosen','$txtketerangan','$sel_hari','$txtmulaipukul','$txtselesaipukul','$txtkodejur','$txtpagu')";
	$hasil=mysql_query($sqlstr);
       mysql_close($conn);
	echo "<meta http-equiv=\"refresh\" content=\"0; url=pnwrnmk.php\">";
	echo "Klik <a href=\"pnwrnmk.php\">disini</a> apabila browser anda berhenti berjalan ...";
?>